package nuaa.service;

import nuaa.dao.IDestinationDao;
import nuaa.util.UtilSqlSession;

import java.io.IOException;

/**
 * 对destination数据表操作的事务
 */
public class DestinationService {
    /*维护dao层对象*/
    IDestinationDao destinationDao= UtilSqlSession.getSqlSession().getMapper(IDestinationDao.class);

    public DestinationService() throws IOException {
    }

    /**
     * 根据destId获取路径
     * @param destId
     * @return
     */
    public String findDestinationsByDestId(Integer destId){
        String destinations = destinationDao.findDestinationsByDestId(destId);
        return destinations;
    }
}
